import request from '@/utils/request'

// 查询预测岗位训练记录列表
export function listTrainScript(query) {
  return request({
    url: '/trainScript/trainScript/list',
    method: 'get',
    params: query
  })
}

// 查询预测岗位训练记录详细
export function getTrainScript(id) {
  return request({
    url: '/trainScript/trainScript/' + id,
    method: 'get'
  })
}

// 新增预测岗位训练记录
export function addTrainScript(data) {
  return request({
    url: '/trainScript/trainScript',
    method: 'post',
    data: data
  })
}

// 修改预测岗位训练记录
export function updateTrainScript(data) {
  return request({
    url: '/trainScript/trainScript',
    method: 'put',
    data: data
  })
}

// 删除预测岗位训练记录
export function delTrainScript(id) {
  return request({
    url: '/trainScript/trainScript/' + id,
    method: 'delete'
  })
}
